home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / unshar.zip / UNSHAR.H < prev    next >
Text File  |  1990-02-19  |  871b  |  50 lines

  1. /*
  2.  * Unshar - extract files from shell archive
  3.  *
  4.  * Written by Warren Toomey. Nov, 1989.
  5.  * You may freely copy or give away this source as
  6.  * long as this notice remains intact.
  7.  *
  8.  * Definitions used by unshar
  9.  */
  10.  
  11.     /* Methods of unsharing */
  12.  
  13. #define UNKNOWN    0
  14. #define BRUTAL    1
  15. #define APPEND    2
  16.  
  17.  
  18.     /* Whitespace indicators */
  19.  
  20. #define WHITE    0
  21. #define NOWHITE 1
  22.  
  23.  
  24.     /* Leading character indicators */
  25.  
  26. #define NOX    0
  27. #define YESX    1
  28.  
  29.  
  30.     /* Emulation types available */
  31.  
  32. #define NUMTOKS    4        /* Must change NUMTOKS to equal the */
  33. /* define UNKNOWN  0 */        /* number of emulation types */
  34. #define SED       1
  35. #define GRES        2
  36. #define CAT       3
  37.  
  38. static char *token[NUMTOKS] =    /* The list of emulation types! */
  39.     { "",
  40.       "sed",
  41.       "gres",
  42.       "cat"
  43.     };
  44.  
  45.  
  46.  
  47.     /* Misc. constants */
  48.  
  49. #define BUFSIZE    256        /* Size of line buffer */
  50.